# 追加文件测试
import random

f=open("test-write.txt","a",encoding="utf-8")

for i in range(10):
    f.write(str(random.randint(1,10000))+"\n")
# f.write(str(random.randint(1,10000))+"\n")

f.flush()

f.close()